package com.evildog.workspace.life.application.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.evildog.workspace.dependencies.mybatis.object.QueryConditionDTO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.evildog.workspace.life.application.entity.MicroHabit;
import com.evildog.workspace.life.application.entity.MicroHabitPageDO;
import com.evildog.workspace.life.application.entity.MicroHabitListDO;
import com.evildog.workspace.life.application.dto.MicroHabitPageDTO;
import com.evildog.workspace.life.application.dto.MicroHabitListDTO;
import com.evildog.workspace.life.application.dto.MicroHabitDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * microHabit Mapper 接口
 * </p>
 *
 * @author evildog
 * @since 2020-08-10
 */
public interface MicroHabitMapper extends BaseMapper<MicroHabit> {

    /**
    * 自定义分页
    */
    IPage<MicroHabitPageDO> getPageList(IPage<MicroHabitPageDO> page, @Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") MicroHabitPageDTO pageDTO);

    /**
    * list
    */
    List<MicroHabitListDO> getList(@Param("queryCondition") List<QueryConditionDTO> queryConditions, @Param("param") MicroHabitListDTO param);

}
